﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Cash.View
{
    public partial class PermissaoNegada : BasePageCash
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String pagina = Session["UltimaPagina"].ToString();
            gravaBitacora("Permissao", "Acessou a pagina -> " + Session["PermissaoNegada"].ToString());
        }

        protected void btnVoltar_Click(object sender, EventArgs e)
        {
            String pagina = Session["UltimaPagina"].ToString();
            if (pagina == null)
            {
                Response.Redirect("~/View/Login.aspx");
            }
            else
            {
                Response.Redirect(pagina);
            }
        }
    }
}